package com.qsmx.store.app.main;

import android.content.Intent;
import android.nfc.NfcAdapter;
import android.os.Bundle;
import android.provider.Settings;
import android.view.View;
import android.widget.Toast;

import androidx.annotation.Nullable;

import com.qsmx.store.app.R;
import com.qsmx.store.app.databinding.DelegateHardWareBinding;
import com.qsmx.store.core.delegates.AtmosDelegate;

public class HardWareDelegate extends AtmosDelegate {

    private DelegateHardWareBinding mBinding;

    @Override
    public Object setLayout() {
        return R.layout.delegate_hard_ware;
    }

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState, View rootView) {
        mBinding = DelegateHardWareBinding.bind(rootView);

        mBinding.btnNfcTest.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                getSupportDelegate().start(new NfcReadTestDelegate());
            }
        });
    }

    @Override
    public void onNewBundle(Bundle args) {
        super.onNewBundle(args);
    }
}
